package org.tissou.server.Services;

import org.tissou.client.Services.ServiceQuiGereService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.tissou.server.Base.Categorie;
import org.tissou.server.Utils.InterfaceMySQL;

/**
 * Created by IntelliJ IDEA.
 * User: Manu
 * Date: 2 mars 2009
 * Time: 22:11:56
 * To change this template use File | Settings | File Templates.
 */
public class ServiceQuiGereImpl extends RemoteServiceServlet implements ServiceQuiGereService {
    public String Gerer(String quoi) {
        Categorie cat = Categorie.chargeage(0, new InterfaceMySQL());
        return cat.rechercherCategorieDansDescendance(quoi).getInfos().getNom();
    }
}
